 ---------------------------------------------------------------------------------
  -- Design Name : Multiplexer 5b 2 to 1
  -- File Name   : IdMux5_2.vhd
  -- Function    : Checks for branch operations
  -- Authors     : Mirko Francuski  2006/0225
  --               Milos Mihajlovic 2006/0039
  -- School      : University of Belgrade
  --               School for Electrical Engineering
  --               Department for Computer Engineering and Information Theory
  -- Subject     : VLSI Computer Systems
---------------------------------------------------------------------------------

library ieee;

use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use work.UserPkg.all;

entity IdMux5_2 is
  port (
    in1: in regAddr;
    in2: in regAddr;
    sel: in std_logic;
    muxOut: out regAddr
  );
end IdMux5_2;

architecture behavioral of IdMux5_2 is
begin
  muxOut <= in1 when sel = '0' else 
            in2;
end architecture;